package com.feicheng.service.impl;




import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.feicheng.entity.User;
import com.feicheng.mapper.UserMapper;
import com.feicheng.model.UserWithRoleWithPermission;
import com.feicheng.service.IUserService;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author yvming.gao
 * @since 2022-07-04
 */
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements IUserService {

    //依赖注入用户mapper
    @Autowired
    UserMapper userMapper;

    @Override
    public List<UserWithRoleWithPermission> getUserInfo(@Param(Constants.WRAPPER) Wrapper wrapper) {
        return userMapper.getUserInfo(wrapper);
    }
}
